<html>
<head>
    <title></title>
    <script type="text/javascript" src="testing.js"></script>
    <meta charset="utf-8">
</head>
<body>
<h1>麻烦ta将这两段代码复制到console中输入即可看到结果</h1>
<textarea name="" id="" cols="100" rows="10">
example = new Derived('example');
Derived.staticMethod();
example.instanceMethod();
</textarea>

<textarea name="" id="" cols="100" rows="10">
example = new Derived('example');
otherExample = new Derived('other-example');
Derived.staticMethod();
example.instanceMethod();
otherExample.instanceMethod();
</textarea>
</body>
</html>